#include<iostream>
using namespace std; 
class circle
{
	private:
		double r,area; 
	public:
		double getr()
		{
			return r;
		}
		circle(double x)
		{
			r=x;
		}
		double getarea()
		{
			area=3.14*r*r; 
			return area;
		}
};

class square{
	private:
		double a,he;
	public:
		double aaa()
		{
			return a;
		}
		square(double y)
		{
			a=y;
		}
		double neff()
		{
			he=a*a;
			return he;
		}
};
int main()
{
	double g,c;
	cout<<"print g and c:"<<endl;
	cin>>g>>c;
	circle *cir=new circle(g); 
	square *squ=new square(c);
	cout<<cir->getarea()<<endl;
	cout<<squ->neff()<<endl;
	return 0;
}
